package com.example.web;

import com.example.entity.Student;
import com.example.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wj on 17-6-30.
 */
@RequestMapping
@RestController
public class TestController {

    @Autowired
    private StudentService studentService;

    @RequestMapping
    public Object get(Student student) {
        return studentService.findByCondition(student);
    }

}
